home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Graphics / Utility / GL Viewer 1.1.1 / src ƒ / memoryio.h < prev    next >
Text File  |  1993-08-09  |  692b  |  29 lines

  1. #ifndef H_memoryio
  2. #define H_memoryio
  3.  
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7.  
  8.  
  9. typedef struct
  10. {
  11.     const char      *filename;
  12.     char          *buffer;
  13.     unsigned long  bufLen;
  14.     unsigned long  currPos;
  15. } MemoryFile;
  16.  
  17.  
  18. MemoryFile *mopen (const char *filename, const char *mode);
  19. int            mclose (MemoryFile *stream);
  20. int            mseek (MemoryFile *stream, long offset, int whence);
  21. long        mtell (MemoryFile *stream);
  22. size_t        mread (void *array, size_t size, size_t numitems, MemoryFile *stream);
  23. size_t        mwrite (const void *array, size_t size, size_t numitems, MemoryFile *stream);
  24. int            mgetc (MemoryFile *stream);
  25. int            mputc (char c, MemoryFile *stream);
  26.  
  27.  
  28. #endif /* H_memoryio */
  29.